package cn.nebula.music.dao;

import java.util.Set;

import org.springframework.stereotype.Repository;

import cn.nebula.music.domain.Role;

@Repository
public interface RoleDAO {
	
	public Set<Role> findAllRoles();

	public Set<Role> findAllRolesOfBT();

	public Role findRoleById(Integer id);

	public Role findRoleByName(String name);

	public Integer addRole(Role role);

	public Integer updateRole(Role role);

	public Integer deleteRoleById(Integer id);
}
